package com.ruoyi.project.wt.auditDaylogQuery.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.project.er.domain.PaeaErError;
import com.ruoyi.project.oms.paeaAuBatch.domain.PaeaAuBatch;
import com.ruoyi.project.wt.auditDaylogQuery.domain.WtCheckDaylog;
import com.ruoyi.project.wt.auditDaylogQuery.domain.WtCheckDaylogQuery;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

/**
 * 监督日志Mapper接口
 *
 * @author 魏刚
 * @date 2020-03-18
 */
@Component
public interface WtCheckDaylogMapper extends BaseMapper<WtCheckDaylog>
{
    /**
     * 查询监督日志
     *
     * @param id 监督日志ID
     * @return 监督日志
     */
    public WtCheckDaylog selectWtCheckDaylogById(String id);

    /**
     * 查询监督日志列表
     *
     * @param wtCheckDaylog 监督日志
     * @return 监督日志集合
     */
    public List<WtCheckDaylog> selectWtCheckDaylogList(WtCheckDaylog wtCheckDaylog);

    /**
     * 新增监督日志
     *
     * @param wtCheckDaylog 监督日志
     * @return 结果
     */
    public int insertWtCheckDaylog(WtCheckDaylog wtCheckDaylog);

    /**
     * 修改监督日志
     *
     * @param wtCheckDaylog 监督日志
     * @return 结果
     */
    public int updateWtCheckDaylog(WtCheckDaylog wtCheckDaylog);

    /**
     * 删除监督日志
     *
     * @param id 监督日志ID
     * @return 结果
     */
    public int deleteWtCheckDaylogById(String id);

    /**
     * 批量删除监督日志
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWtCheckDaylogByIds(String[] ids);

    public String selectMaxCode(String year, String creator);
    // 风险预警核实量
    public int statisticsRisk(WtCheckDaylogQuery wtCheckDaylog);
    // 重点监控督办量
    public int statisticsAudit(WtCheckDaylogQuery wtCheckDaylog);
    // 下发的工作底稿和风险记录表量
    public int statisticsWorkPaper(WtCheckDaylogQuery wtCheckDaylog);
    //查看监控的机构
    public  List<WtCheckDaylog> queryPaeaAuBatchs4OrgId(WtCheckDaylogQuery wtCheckDaylog);
    //查看监控的机构
    public  List<PaeaAuBatch> queryPaeaAuBatchs4View(String createOper, String workDate, String yyyyMM_1, String yyyyMM);
    public  List<PaeaAuBatch> queryRandomPaeaAuBatchs4View(String createOper, String workDate, String yyyyMM_1, String yyyyMM);
    public  List<PaeaAuBatch> queryManPaeaAuBatchs4View(String createOper, String workDate, String yyyyMM_1, String yyyyMM);
    public  List<PaeaAuBatch> queryRePaeaAuBatchs4View(String createOper, String workDate, String yyyyMM_1, String yyyyMM);

    public  List<PaeaAuBatch> queryPaeaAuBatchs4OrgId(String createOper, String workDate, String yyyyMM_1, String yyyyMM);
    //查询重点监控下发督办量
    public  List<PaeaErError> queryRegistErrView(String createOper, String workDate);
    //查询处理督办量
    public  List<PaeaErError> queryDealErrView(String createOper, String workDate,String yearStr);
    //集中预警量
    public  List<PaeaErError> queryRiskErrView(String createOper, String workDate,String yearStr);
}
